<?php if (!defined('THINK_PATH')) exit();?><html>
    <head>
        <title>图片上传</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script type='text/javascript' src='/public/js/jquery-1.11.2.min.js'></script>
    </head>
    <body style="width:100%;height: 100%">
        <div>
            <form action="/home/action/upload" method="post" enctype="multipart/form-data">
            <input type="file" name="img" style='width:8rem'>
            <input type="submit" value="上传">
            <input type="hidden" value="<?php echo ($path); ?>" id="_img_">
            </form>
        </div>
        <script type="text/javascript">
            document.domain = '<?php echo _DOMAIN_ALL_?>';
             $(document).ready(function(){
                 var path = $('#_img_').val();
                 if(path.length>0){
                     $("#_banner_",window.parent.document).attr('src',path);
                     $("#banner_logo",window.parent.document).val(path);
                 }
             });
        </script>
    </body>
</html>